<?php
$this->title = '论文列表';

$this->registerCss("
    .page-list{padding:40px 0px 0px 0px;text-align:center;background:#F7F7F7}
    .page-list .title{font-size:28px;font-weight:500;color:#333}
    .page-list .desc{text-transform: uppercase;font-size:18px;color:#333;font-weight:300;letter-spacing:1px}
    



    .article-list{margin:0 20px;background: #fff}
    .article-item{height:45px;line-height: 45px;font-size: 13px;border-bottom:1px solid #CDCDCD;margin: 0 10px}
    .article-item-title{width:75%;height:100%;float: left;text-align: left;}
    .article-item-title .title{margin: 0px;font-size:14px;overflow: hidden;text-overflow:ellipsis;white-space: nowrap;font-weight:300}
    .article-item .date{width:25%;height:100%;float: left;text-align: right;color:#9F9F9F;font-weight:300;font-size:12px}

    .pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover, .pagination > .active > span:hover, .pagination > .active > a:focus, .pagination > .active > span:focus {
        background-color: #F6C900;
        border-color: #F6C900;
    }
    .pagination > li > a, .pagination > li > span {
        color: #F6C900;
    }
    .pagination > .disabled > span, .pagination > .disabled > span:hover, .pagination > .disabled > span:focus, .pagination > .disabled > a, .pagination > .disabled > a:hover, .pagination > .disabled > a:focus {
        color: #F6C900;
    }

");
?>

<div class="page-list">
    <p class="title" style="margin-bottom: 5px">论文资源</p>
    <p class="desc" style="text-transform: uppercase;margin-bottom: 20px">paper resources</p>

    <div class="article-list">

        <?php foreach($list as $k=>$v){?>
        <a href="/touch/default/view?id=<?=$v['id']?>">
            <div class="article-item" style="<?php if($k == 9){echo 'border-bottom:0px';}?>">
                <div class="article-item-title">
                    <p class="title"><?=$v['title']?></p>
                </div>
                <div class="date"><?=$v['publish_date']?></div>
                <div class="clearfix"></div>
            </div>
        </a>
        <?php }?>
       
    </div>

    <div class="clearfix"></div>

    <div class="text-center"> <?= \yii\widgets\LinkPager::widget(['pagination' => $pages,
        'firstPageLabel'=>"首页",
        'prevPageLabel'=>'«',
        'nextPageLabel'=>'»',
        'lastPageLabel'=>'末页',
        'maxButtonCount'=>4
        ]); 
        ?></div>

</div>


